package pw.goyd.game.logic;

import pw.goyd.protocol.core.Serializer;

/**
 * 登录消息
 *
 * @author StanWind
 */
public class LoginResponse extends Serializer {

    private String account;
    private byte msg;

    public byte getMsg() {
        return msg;
    }

    public void setMsg(byte msg) {
        this.msg = msg;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }


    @Override
    protected void read() {
    }

    @Override
    protected void write() {
        writeString(account);
        writeByte(msg);
    }

}
